<?php

class Query {
	protected $_resultStringQuery="";
	public function __construct(){
		
	}
	
	public function where(){
		
	}
	
	protected $_limit;
	public function limit($limit,$offset=0){
			$this->_limit = new QueryLimit($limit,$offset);
			return $this;
	}
	
	protected $_orderBy;
	public function orderBy($fieldName,$dimension='ASC'){
		$this->_orderBy = new QueryOrderBy($fieldName,$dimension);
		return $this;
	}
	
	public function groupBy(){
		
	}
	
	public function whereIn(){
		
	}
	
	protected $_tables = array();
	public function addTable($tableName){
		if(!in_array($tableName,$this->_tables)){
			$this->_tables[]=$tableName;
		}
	}
}

?>